import {

  L_request
} from './request.js';


export function getmessage() {
  return L_request({
    url: 'index/commuity/getmsg',
    method: 'post',
  })

}
export function InDynamic(data) {
  return L_request({
    url: 'index/commuity/InDy',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function getOneMessage(data) {
  return L_request({
    url: 'index/commuity/getOneMessage',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function sendLikeuser(data) {
  return L_request({
    url: 'index/commuity/sendLikeuser',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function sendComentUser(data) {
  return L_request({
    url: 'index/commuity/sendComentUser',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function getusermessage(token) {
  return L_request({
    url: 'index/commuity/getusermessage',
    method: 'post',
    data: {
      token: token
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}

export function sendImg(data) {
  return L_request({
    url: 'index/commuity/sendImg',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}
export function sendIndexMsg(data) {
  return L_request({
    url: 'index/commuity/sendIndexMsg',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}
export function selectIndex(data) {
  return L_request({
    url: 'index/commuity/selectIndex',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  }, false)
}
export function getclass() {
  return L_request({
    url: 'index/commuity/getclass',
    method: 'post',
  })
}

export function getUsernum(data) {
  return L_request({
    url: 'index/commuity/getUsernum',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}


export function getAddrnum(data) {
  return L_request({
    url: 'index/commuity/getAddrnum',
    method: 'post',
    data: data,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}
export function getMyDymessage(data) {
  return L_request({
    url: 'index/commuity/getMyDymessage',
    method: 'post',
    data: {
      nowID:data
    },
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
  })
}